package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户优惠卷记录对象 luntai_user_coupon_record
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class LuntaiUserCouponRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 优惠券id */
    @Excel(name = "优惠券id")
    private Integer couponId;

    /** 1待使用 2已使用 3已过期 */
    @Excel(name = "1待使用 2已使用 3已过期")
    private Integer stauts;

    /** 是否删除 */
    @Excel(name = "是否删除")
    private Integer isdelete;

    /** 使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date usetime;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setCouponId(Integer couponId) 
    {
        this.couponId = couponId;
    }

    public Integer getCouponId() 
    {
        return couponId;
    }
    public void setStauts(Integer stauts) 
    {
        this.stauts = stauts;
    }

    public Integer getStauts() 
    {
        return stauts;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }
    public void setUsetime(Date usetime) 
    {
        this.usetime = usetime;
    }

    public Date getUsetime() 
    {
        return usetime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("stauts", getStauts())
            .append("isdelete", getIsdelete())
            .append("createTime", getCreateTime())
            .append("usetime", getUsetime())
            .toString();
    }
}
